  <!DOCTYPE html>
<html lang="en">
<head>
<title>JwsCms内容管理系统</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="__CSS__/style.css" />
<script src="__STATIC__/js/jquery-1.7.2.min.js"></script> 

</head>
<body>


  <div class="place">
    <span>位置：</span>
    <ul class="placeul">
      <li><a href="#">首页</a></li>
      <li><a href="#">表单</a></li>
    </ul>
  </div>

  <div class="formbody">

    <div class="formtitle"><span>{$info['id']?'编辑':'新增'}用户</span></div>
    <form action="{:U('edit')}" method="post" class="from_tab">
      <ul class="forminfo">
        <li>
          <label>用户名:</label>
          <input type="text" name="username" class="dfinput" value="{$info.username}" ></li>
        <li>
          <label>密码:</label>
          <input name="password" type="password" class="dfinput" /><i>为空表示不修改密码</i></li>
         <li><label>上级</label>
             <if condition="$_GET['type'] eq 1">{$info.role}<else />
                <div class="vocation">
                    <select name="role" class="dfselect">
                      <option value="">---请选择---</option>
                      <volist name="list" id="v">
                         <option value="{$v.id}" <if condition="$info['role'] eq $v['id']"> selected </if> >{$v.name}({$v.remark})</option>
                       </volist> 
                    </select>  
                </div>
             </if>  
        </li>
        <li>
          <label>状态</label>
          <cite>
            <input type="radio" name="status" value="1"  <if condition="$info['status'] eq 1"> checked="checked" </if> > 开启&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="radio" name="status" value="0" <if condition="$info['status'] eq 0"> checked="checked" </if>> 关闭
          </cite>
        </li>
        <li>
          <label>&nbsp;&nbsp;</label>
          <input type="hidden" name="id" value="{$info.id}">
          <button class="btn btn-primary" type="submit">保存</button>
        </li>
      </ul>

    </form>
  </div>

</body>
</html>